package com.zx.deploy.common.exception;


/**
 * 
* @Description: 系统业务异常
* @author jbyu 
* @date 2017年5月2日 下午5:51:13 
*
 */
public class BusinessException extends RuntimeException{
	String url;
	int errorCode = 0;
	
	public BusinessException(Exception ex){
		super(ex);
	}
	
	public BusinessException(){
		super("对不起,系统繁忙,请稍候再试!");
	}
	
	public BusinessException(String msg){
		super(msg);
	}
	
	public BusinessException(String msg,Exception ex){
		super(msg,ex);
	}
	
	public BusinessException(String msg,String url){
		super(msg);
		this.url = url;
	}
	
	public BusinessException(String msg,Exception ex,String url){
		super(msg,ex);
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	public BusinessException(String msg, int errorCode) {
		super(msg);
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}
}
